package com.xushi.bean;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.ALWAYS)
public class UserTemplateStatus {
    int code;
    String message;

    UserTemplateStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static UserTemplateStatus permitBuy = new UserTemplateStatus(1, "可以购买");
    public static UserTemplateStatus wrongCondition = new UserTemplateStatus(2, "购买的模版不存在");
    public static UserTemplateStatus needPay = new UserTemplateStatus(4, "需要续费");
    public static UserTemplateStatus alreadyHave = new UserTemplateStatus(3, "存在有效模版");

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
